import request from '@/utils/request'

// 查询员工日轮班列表
export function listTurn(query) {
  return request({
    url: '/hotal/turn/list',
    method: 'get',
    params: query
  })
}

// 查询员工日轮班详细
export function getTurn(turnId) {
  return request({
    url: '/hotal/turn/' + turnId,
    method: 'get'
  })
}

// 新增员工日轮班
export function addTurn(data) {
  return request({
    url: '/hotal/turn',
    method: 'post',
    data: data
  })
}

// 修改员工日轮班
export function updateTurn(data) {
  return request({
    url: '/hotal/turn',
    method: 'put',
    data: data
  })
}

// 删除员工日轮班
export function delTurn(turnId) {
  return request({
    url: '/hotal/turn/' + turnId,
    method: 'delete'
  })
}
